#!/usr/bin/env python
# coding=utf-8
# __author__ = 'Yunchao Ling'

from BCBio import GFF
from Bio import SeqIO

in_file = "/Users/genesis/Downloads/NC_045512.gb"
out_file = "/Users/genesis/Downloads/NC_045512.gff"
in_handle = open(in_file)
out_handle = open(out_file, "w")

GFF.write(SeqIO.parse(in_handle, "genbank"), out_handle)

in_handle.close()
out_handle.close()
